/*
 * @Author: TT-hzy 
 * @Date: 2024-07-05 19:35:43
 * @LastEditors: TT-hzy 
 * @LastEditTime: 2024-07-05 19:40:39
 * @Description: 
 */
import {

  Sequelize,
  DataType,
} from 'sequelize-typescript';

module.exports = {
  up: async (queryInterface: any, _sequelize: Sequelize) => {
    return queryInterface.createTable('userLike', {
      id: {
        type: DataType.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },

      title: {
        type: DataType.STRING(20),
        allowNull: true,
      }
    });
  },
  // ... 可能还有其他函数，如down等

  down: async (queryInterface: any) => {
    await queryInterface.dropTable('userLike');
  },
};